package Test1;

import java.util.Random;
import java.util.Scanner;

/**
 * @Author admin
 * @Date 2019/3/15 8:07
 */
public class Guess {
   private int random;
   private int cs;

    public Guess() {
    }

    public int getRandom() {
        return random;
    }

    public int getCs() {
        return cs;
    }

    public void setRandom(int random) {
        this.random = random;
    }

    public void setCs(int cs) {
        this.cs = cs;
    }

    public Guess(int random, int cs) {
        this.random = random;
        this.cs = cs;
    }

    void made() {
        Random ran = new Random();
        random = ran.nextInt(10)+1;

    }

    public String judge(int shuru) {
        cs++;
        if (shuru>random){
            return "bigger";
        }else if(shuru<random){
            return  "smaller";
        }else {
            return "bingo";
        }
    }
}